import router from '@/router'
import { requestMiddleware } from '@/middleWare/request'
router.beforeEach(async (to, form, next) => {
  if (process.env.VUE_APP_BUILD_MODE !== 'static') {
    await requestMiddleware(to, form)
  }
  next()
})
